package com.weige.conver.controller;

import com.weige.conver.service.EnvDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
public class EnvController {

    @Autowired
    private EnvDataService envDataService;

    /**
     * 获取环境监测类设备列表（被监测对象）
     * @return
     */
    @GetMapping("/envMonitorManager/getAllEnvDevices")
    public String getAllEnvDevices() throws IOException {
        return envDataService.getAllEnvDevices();
    }
}
